package cn.tedu.logistics.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Formatter {

	public static String toChnFormat(Date d){
        SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        String date = formatter.format(d);
        try {
        	return date;
        }catch (Exception e) {
			e.printStackTrace();
			return null;
		}
        
	}
}
